<template>
    <el-container style="text-align: center">
        <el-header style="border-bottom: 1px #ccc solid;">
            <div style="color: black;font-size: 25px;line-height: 50px;font-weight: bold">小九的工具箱</div>
        </el-header>
        <el-main>
            <el-row>
                <el-button type="success" icon="el-icon-search" @click="onDouyinLive">
                    抖音弹幕游戏
                </el-button>
            </el-row>
            <el-row>
                <el-button type="primary" icon="el-icon-search" @click="onSearchBaidu">
                    百度广告排名
                </el-button>
            </el-row>
        </el-main>
    </el-container>
</template>

<style>
    .el-row{margin-bottom: 10px}
    .el-button{width: 200px}
</style>
<script>

    export default {
        name: 'Home',
        data() {
            return {}
        },
        created() {

        },
        methods: {
            onSearchBaidu() {
                this.$electron.ipcRenderer.send('createWindow', {
                    route: '/searchBaidu'
                });
                // this.$router.push('/searchBaidu')
            },
            onDouyinLive() {
                this.$electron.ipcRenderer.send('createWindow', {
                    route: '/douyinLive'
                });
            },
        },
    }
</script>

<style scoped>
</style>
